DeactivateControl
NEW WITH THE APPEARANCE MANAGER
Deactivates a control and any latent embedded controls.
pascal OSErr DeactivateControl (ControlHandle inControl);
inControl
- On input, a handle to the control that you wish to deactivate. Passing a window's root control will deactivate all controls in that window.
- function result
- A result code; see "Result Codes".
DISCUSSION
TheDeactivateControl
function should be called instead ofHiliteControl
to deactivate a specified control and its latent embedded controls. For a discussion of latency, see "Manipulating Controls".You can use
DeactivateControl
to deactivate all controls in a window by passing the window's root control in theinControl
parameter.If a control definition function supports activate events, it will receive a
kControlMsgActivate
message before redrawing itself in its inactive state.SEE ALSO
ActivateControl
."Appearance Manager Gestalt Selector Constants".